package com.sx.page.fegin;


import common.pojo.Products;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 自定义的fegin接口调用商品微服务的接口方法都在这定义
 */

@FeignClient(name = "service-product")
public interface ProductFegin {

    @GetMapping("/product/findById/{id}")
    public Products findById(@PathVariable long id);

    @GetMapping("/product/findAll")
    public Products findAll();

    @GetMapping("/service/getPort")
    public String getPort();

}